export function setLocalStorage(name: string, value: string) {
  if (window.localStorage) {
    window.localStorage.setItem(name, value)
  }
}

export function getLocalStorage(name: string) {
  if (window.localStorage) {
    const value = window.localStorage.getItem(name)
    return value === null ? '' : value
  }
  return ''
}